package com.axht.car.fellowcar.system.controller;


import com.axht.car.fellowcar.common.controller.CrudController;
import com.axht.car.fellowcar.system.dto.system.role.FindRoleDTO;
import com.axht.car.fellowcar.system.dto.system.role.RoleAddDTO;
import com.axht.car.fellowcar.system.dto.system.role.RoleUpdateDTO;
import com.axht.car.fellowcar.system.entity.SysRole;
import com.axht.car.fellowcar.system.service.SysRoleService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 *
 * </p>
 *
 * @author brozer
 * @since 2018-11-03
 */
@RestController
@RequestMapping(value = {"/system/role"})
@Api(tags = {"角色管理"})
public class RoleController implements CrudController<SysRole,RoleAddDTO,RoleUpdateDTO,String,FindRoleDTO,SysRoleService> {

    private final SysRoleService sysRoleService;

    @Autowired
    public RoleController(SysRoleService sysRoleService) {
        this.sysRoleService = sysRoleService;
    }

    @Override
    public SysRoleService getService() {
        return sysRoleService;
    }
}
